package com.tanhua.model.vo;

import com.tanhua.model.db.Count;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OptionVo {
    private String id;
    private String option;

    public static OptionVo init(Count count) {
        OptionVo optionVo = new OptionVo();
        optionVo.setId(count.getCountId().toString());
        optionVo.setOption(count.getCountContent());
        return optionVo;
    }
}
